define(['knockout',
    'platform.common',
    'bootbox',
    'knockout-bsTable',
    'knockout-component'], function (ko, platform) {
    //用于前后端交互
    var rest = {};

    var kbTable = require('knockout-bsTable');

    //主页面模型
    var VM = function () {
        var self = this;

        //列表模型
        self.columns = [];
        self.demoTable = new kbTable.bootstrapTableViewModel();

        //详情页面模型
        self.detailDlgVisible = ko.observable(false);
        self.detailsModel = {};

        //按钮事件定义
        self.fnAdd = function () {

        }
    };

    return new VM();
});